<%@ Control Inherits="CVCommunity.Admin.Attach" %>
<form runat="server" onsubmit="return checknumber();">
<div class="grid">
<table cellspacing="0" width="100%">
<tr class="forumno category">
<td colspan="3">附件设置</td>
</tr>

<tr class="forumtd">
<td>上传的附件存放在</td>
<td><asp:TextBox ID="AttachSaveAt" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" />
目录下，默认：“attachs/”</td>
</tr>
<tr class="forumtd">
<td valign="top">上传的附件存放方式</td>
<td class="smallbox forumno"><asp:RadioButtonList ID="AttachSaveMode" RepeatDirection="Vertical" runat="server">
<asp:ListItem Text="存放在指定目录下" Value="0" />
<asp:ListItem Text="按日期来存放" Value="1" />
<asp:ListItem Text="按月份来存放" Value="2" />
<asp:ListItem Text="按年份存放" Value="3" />
<asp:ListItem Text="按文件扩展名来存放" Value="4" />
</asp:RadioButtonList></td>
</tr>
<tr class="forumtd">
<td>每人每天最多允许上传</td>
<td>附件
<asp:TextBox ID="AllowUploadCountPerDay" class="input2" onblur="this.className='input2'" onfocus="this.className='input1'" runat="server" Width="50" alt='numeric' />
次&nbsp;，&nbsp;&nbsp;体积不超过&nbsp;
<asp:TextBox ID="AllowUploadTotalPerDay" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric' />&nbsp;KB</td>
</tr>

<tr class="forumtd">
<td>允许上传的附件每次</td>
<td>最大体积不超过&nbsp;<asp:TextBox ID="AllowAttachSize" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" />&nbsp;KB</td>
</tr>
<tr class="forumtd">
<td>只允许上传后缀名为</td>
<td><asp:TextBox ID="AllowAttachType" Width="380" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" />&nbsp;的附件文件(用“|”分割)</td>
</tr>
<tr class="forumtd">
<td>拒绝外站盗链本社区的附件</td>
<td class="smallbox"><asp:CheckBox ID="ProtectAttachLinks" runat="server" Text=""/>
开启防盗链</td>
</tr>
<tr class="smallbox forumtd">
<td>上传图片添加水印<asp:CheckBox ID="EnableAddLogo" runat="server" Text=""/></td>
<td class="forumno"><span class="smallbox forumno">
<asp:RadioButtonList ID="AddLogoMod" RepeatDirection="Horizontal" runat="server">
<asp:ListItem Text="图片" Value="1" />
<asp:ListItem Text="文字" Value="2" />
<asp:ListItem Text="不加" Value="3" /></asp:RadioButtonList>
</span></td>
</tr>

<tr class="forumtd">
<td valign="top">水印位置加在附件的</td>
<td class="smallbox forumno"><asp:RadioButtonList ID="LogoPlace" RepeatColumns="3" RepeatDirection="Horizontal" runat="server">
<asp:ListItem Text="左上" Value="1" />
<asp:ListItem Text="中上" Value="2" />
<asp:ListItem Text="右上" Value="3" />
<asp:ListItem Text="左" Value="4" />
<asp:ListItem Text="中" Value="5" />
<asp:ListItem Text="右" Value="6" />
<asp:ListItem Text="左下" Value="7" />
<asp:ListItem Text="中下" Value="8" />
<asp:ListItem Text="右下" Value="9" />
</asp:RadioButtonList></td>
</tr>
<tr class="forumtd">
<td class="smallbox"><asp:CheckBox ID="KeepPics" runat="server" Text=""/>
强制把图片按比例缩略</td>
<td>高
<asp:TextBox ID="KeppPicsSizeH" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="100" alt='numeric' />
px，宽
<asp:TextBox ID="KeppPicsSizeW" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="100" alt='numeric'/>
px </td>
</tr>
<tr class="forumtd">
<td>加入文字信息内容为</td>
<td><asp:TextBox ID="AddText" Width="300" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" /></td>
</tr>
<tr class="forumtd">
<td>&nbsp;</td>
<td>最长
<asp:TextBox ID="AddTextInfoW" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="25" alt='numeric'/>
px         
，最高
<asp:TextBox ID="AddTextInfoH" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="25" alt='numeric'/>
px，字体
        <asp:DropDownList ID="AddTextFace" runat="server">
<asp:ListItem Text="宋体" Value="宋体" />
<asp:ListItem Text="黑体" Value="黑体" />
<asp:ListItem Text="Sans-Seri" Value="sans-seri3" />
<asp:ListItem Text="Courier New" Value="courier new" />
<asp:ListItem Text="Arial" Value="arial" />
<asp:ListItem Text="Tahoma" Value="tahoma" />
<asp:ListItem Text="Verdana" Value="verdana" />
<asp:ListItem Text="Fixedsys" Value="fixedsys" /></asp:DropDownList>
，字号
<asp:TextBox ID="AddTextSize" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="15" alt='numeric'/>
，颜色
<asp:TextBox ID="AddTextColor" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="80" /></td>
</tr>
<tr class="forumtd">
<td>附加水印图片的地址</td>
<td><asp:TextBox ID="LogoPath" Width="150" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" />
宽度
<asp:TextBox ID="LogoPlace0W" class="input2" onblur="this.className='input2'" onfocus="this.className='input1'" runat="server" Width="25" alt='numeric'/>
，高度
<asp:TextBox ID="LogoPlace0H" class="input2" onblur="this.className='input2'" onfocus="this.className='input1'" runat="server" Width="25" alt='numeric'/></td>
</tr>

<tr class="forumtd">
<td>自定义存放坐标</td>
<td>X:<asp:TextBox ID="LogoPathW" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="30" alt='numeric'/>&nbsp;&nbsp;Y:<asp:TextBox ID="LogoPathH" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="30" alt='numeric'/></td>
</tr>
<tr class="forumtd">
<td>上传图片宽度不能超过</td>
<td><asp:TextBox ID="MaxUploadImageWidth" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" Width="50" alt='numeric' />
px&nbsp;<span class="t1">(如果不想限制图片显示大小，可以将该值设置成很大数字，如 2000！)</span> </td>
</tr>
<tr class="forumtd">
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="forumtd">
<td colspan="3" align="center"><asp:Button Text="保存设置" class="button" OnClick="Save" runat="server"></asp:Button></td>
</tr>
</table>
</div>
</form>